package com.p900.website.web.admin;

/**
 * {"statusCode":"200", "message":"操作成功", "navTabId":"navNewsLi", "forwardUrl":"", "callbackType":"closeCurrent", "rel"."xxxId"}
 */
public class DwzResultVo {

    private String statusCode;

    private String message;

    private String navTabId;

    private String forwardUrl;

    private String callbackType;

    private String rel;

    private DwzResultVo(String statusCode, String message, String navTabId, String forwardUrl, String callbackType, String rel) {
        this.statusCode = statusCode;
        this.message = message;
        this.navTabId = navTabId;
        this.forwardUrl = forwardUrl;
        this.callbackType = callbackType;
        this.rel = rel;
    }

    public static DwzResultVo successResult(){
        return new DwzResultVo("200", "", "", "", "", "");
    }

    public static DwzResultVo closeCurrentAndReloadListPage(Class entity){
        return new DwzResultVo("200", "", entity.getName().toLowerCase() + "Nav", "", "closeCurrent", "");
    }

    public String getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(String statusCode) {
        this.statusCode = statusCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getNavTabId() {
        return navTabId;
    }

    public void setNavTabId(String navTabId) {
        this.navTabId = navTabId;
    }

    public String getForwardUrl() {
        return forwardUrl;
    }

    public void setForwardUrl(String forwardUrl) {
        this.forwardUrl = forwardUrl;
    }

    public String getCallbackType() {
        return callbackType;
    }

    public void setCallbackType(String callbackType) {
        this.callbackType = callbackType;
    }

    public String getRel() {
        return rel;
    }

    public void setRel(String rel) {
        this.rel = rel;
    }
}
